import { io } from './io'

export const upload = (data: { fileName: string; uriImageData: string }) =>
    io<Api.Admin.UploadResponse>({
        url: '/api/v1/admin/image/upload',
        method: 'POST',
        data
    })
